# 声明基础镜像
FROM ubuntu:24.04
LABEL author="roboko"
# 设置工作路径
WORKDIR /chat
RUN ["mkdir", "-p", "./log"]
RUN ["mkdir", "-p", "./data"]
RUN ["mkdir", "-p", "./conf"]
RUN ["mkdir", "-p", "./bin"]
# 拷贝运行库到镜像
COPY ./libs/* /lib
# 拷贝可执行文件到镜像
COPY ./build/file_server ./bin
# 程序入口
ENTRYPOINT ["./bin/file_server", "--flagfile=./conf/file.conf"]
